home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / conf / httpd.conf-amiga-dist < prev    next >
Encoding:
Text File  |  2001-03-06  |  31.6 KB  |  964 lines

  1. ##
  2. ## httpd.conf -- Apache HTTP server configuration file
  3. ##
  4.  
  5. #
  6. # Based upon the NCSA server configuration files originally by Rob McCool.
  7. #
  8. # This is the main Apache server configuration file.  It contains the
  9. # configuration directives that give the server its instructions.
  10. # See <URL:http://www.apache.org/docs/> for detailed information about
  11. # the directives.
  12. #
  13. # Do NOT simply read the instructions in here without understanding
  14. # what they do.  They're here only as hints or reminders.  If you are unsure
  15. # consult the online docs. You have been warned.  
  16. #
  17. # After this file is processed, the server will look for and process
  18. # /Apache/conf/srm.conf and then /Apache/conf/access.conf
  19. # unless you have overridden these with ResourceConfig and/or
  20. # AccessConfig directives here.
  21. #
  22. # The configuration directives are grouped into three basic sections:
  23. #  1. Directives that control the operation of the Apache server process as a
  24. #     whole (the 'global environment').
  25. #  2. Directives that define the parameters of the 'main' or 'default' server,
  26. #     which responds to requests that aren't handled by a virtual host.
  27. #     These directives also provide default values for the settings
  28. #     of all virtual hosts.
  29. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  30. #     different IP addresses or hostnames and have them handled by the
  31. #     same Apache server process.
  32. #
  33. # Configuration and logfile names: If the filenames you specify for many
  34. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  35. # server will use that explicit path.  If the filenames do *not* begin
  36. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  37. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  38. # server as "/usr/local/apache/logs/foo.log".
  39. #
  40.  
  41. ### Section 1: Global Environment
  42. #
  43. # The directives in this section affect the overall operation of Apache,
  44. # such as the number of concurrent requests it can handle or where it
  45. # can find its configuration files.
  46. #
  47.  
  48. #
  49. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  50. # Unix platforms.
  51. #
  52. # ONLY CHANE THIS IF YOU KNOW WHAT YOU ARE DOING.
  53. ServerType standalone
  54.  
  55. #
  56. # ServerRoot: The top of the directory tree under which the server's
  57. # configuration, error, and log files are kept.
  58. #
  59. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  60. # mounted filesystem then please read the LockFile documentation
  61. # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
  62. # you will save yourself a lot of trouble.
  63. #
  64. # Do NOT add a slash at the end of the directory path.
  65. #
  66. ServerRoot "/Apache"
  67.  
  68. #
  69. # The LockFile directive sets the path to the lockfile used when Apache
  70. # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
  71. # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
  72. # its default value. The main reason for changing it is if the logs
  73. # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
  74. # DISK. The PID of the main server process is automatically appended to
  75. # the filename. 
  76. #
  77. #LockFile /T/httpd.lock
  78.  
  79. #
  80. # PidFile: The file in which the server should record its process
  81. # identification number when it starts.
  82. #
  83. PidFile logs/httpd.pid
  84.  
  85. #
  86. # ScoreBoardFile: File used to store internal server process information.
  87. # Not all architectures require this.  But if yours does (you'll know because
  88. # this file will be  created when you run Apache) then you *must* ensure that
  89. # no two invocations of Apache share the same scoreboard file.
  90. #
  91. ScoreBoardFile logs/httpd.scoreboard
  92.  
  93. #
  94. # In the standard configuration, the server will process httpd.conf (this 
  95. # file, specified by the -f command line option), srm.conf, and access.conf 
  96. # in that order.  The latter two files are now distributed empty, as it is 
  97. # recommended that all directives be kept in a single file for simplicity.  
  98. # The commented-out values below are the built-in defaults.  You can have the 
  99. # server ignore these files altogether by using "/dev/null" (for Unix) or
  100. # "nul" (for Win32) for the arguments to the directives.
  101. #
  102. #ResourceConfig conf/srm.conf
  103. #AccessConfig conf/access.conf
  104.  
  105. #
  106. # Timeout: The number of seconds before receives and sends time out.
  107. #
  108. Timeout 300
  109.  
  110. #
  111. # KeepAlive: Whether or not to allow persistent connections (more than
  112. # one request per connection). Set to "Off" to deactivate.
  113. #
  114. KeepAlive On
  115.  
  116. #
  117. # MaxKeepAliveRequests: The maximum number of requests to allow
  118. # during a persistent connection. Set to 0 to allow an unlimited amount.
  119. # We recommend you leave this number high, for maximum performance.
  120. #
  121. MaxKeepAliveRequests 100
  122.  
  123. #
  124. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  125. # same client on the same connection.
  126. #
  127. KeepAliveTimeout 15
  128.  
  129. #
  130. # Server-pool size regulation.  Rather than making you guess how many
  131. # server processes you need, Apache dynamically adapts to the load it
  132. # sees --- that is, it tries to maintain enough server processes to
  133. # handle the current load, plus a few spare servers to handle transient
  134. # load spikes (e.g., multiple simultaneous requests from a single
  135. # Netscape browser).
  136. #
  137. # It does this by periodically checking how many servers are waiting
  138. # for a request.  If there are fewer than MinSpareServers, it creates
  139. # a new spare.  If there are more than MaxSpareServers, some of the
  140. # spares die off.  The default values are probably OK for most sites.
  141. #
  142. MinSpareServers 5
  143. MaxSpareServers 10
  144.  
  145. #
  146. # Number of servers to start initially --- should be a reasonable ballpark
  147. # figure.
  148. #
  149. StartServers 5
  150.  
  151. #
  152. # Limit on total number of servers running, i.e., limit on the number
  153. # of clients who can simultaneously connect --- if this limit is ever
  154. # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
  155. # It is intended mainly as a brake to keep a runaway server from taking
  156. # the system with it as it spirals down...
  157. #
  158. MaxClients 150
  159.  
  160. #
  161. # MaxRequestsPerChild: the number of requests each child process is
  162. # allowed to process before the child dies.  The child will exit so
  163. # as to avoid problems after prolonged use when Apache (and maybe the
  164. # libraries it uses) leak memory or other resources.  On most systems, this
  165. # isn't really needed, but a few (such as Solaris) do have notable leaks
  166. # in the libraries. For these platforms, set to something like 10000
  167. # or so; a setting of 0 means unlimited.
  168. #
  169. # NOTE: This value does not include keepalive requests after the initial
  170. #       request per connection. For example, if a child process handles
  171. #       an initial request and 10 subsequent "keptalive" requests, it
  172. #       would only count as 1 request towards this limit.
  173. #
  174. MaxRequestsPerChild 30
  175.  
  176. #
  177. # Listen: Allows you to bind Apache to specific IP addresses and/or
  178. # ports, in addition to the default. See also the <VirtualHost>
  179. # directive.
  180. #
  181. #Listen 3000
  182. #Listen 12.34.56.78:80
  183.  
  184. #
  185. # BindAddress: You can support virtual hosts with this option. This directive
  186. # is used to tell the server which IP address to listen to. It can either
  187. # contain "*", an IP address, or a fully qualified Internet domain name.
  188. # See also the <VirtualHost> and Listen directives.
  189. #
  190. #BindAddress *
  191.  
  192. #
  193. # Dynamic Shared Object (DSO) Support
  194. #
  195. # To be able to use the functionality of a module which was built as a DSO you
  196. # have to place corresponding `LoadModule' lines at this location so the
  197. # directives contained in it are actually available _before_ they are used.
  198. # Please read the file README.DSO in the Apache 1.3 distribution for more
  199. # details about the DSO mechanism and run `httpd -l' for the list of already
  200. # built-in (statically linked and thus always available) modules in your httpd
  201. # binary.
  202. #
  203. # Note: The order in which modules are loaded is important.  Don't change
  204. # the order below without expert advice.
  205. #
  206. # Example:
  207. # LoadModule foo_module libexec/mod_foo.so
  208.  
  209. #
  210. # ExtendedStatus controls whether Apache will generate "full" status
  211. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  212. # Off) when the "server-status" handler is called. The default is Off.
  213. #
  214. #ExtendedStatus On
  215.  
  216. ### Section 2: 'Main' server configuration
  217. #
  218. # The directives in this section set up the values used by the 'main'
  219. # server, which responds to any requests that aren't handled by a
  220. # <VirtualHost> definition.  These values also provide defaults for
  221. # any <VirtualHost> containers you may define later in the file.
  222. #
  223. # All of these directives may appear inside <VirtualHost> containers,
  224. # in which case these default settings will be overridden for the
  225. # virtual host being defined.
  226. #
  227.  
  228. #
  229. # If your ServerType directive (set earlier in the 'Global Environment'
  230. # section) is set to "inetd", the next few directives don't have any
  231. # effect since their settings are defined by the inetd configuration.
  232. # Skip ahead to the ServerAdmin directive.
  233. #
  234.  
  235. #
  236. # Port: The port to which the standalone server listens. For
  237. # ports < 1023, you will need httpd to be run as root initially.
  238. #
  239. Port 80
  240.  
  241. #
  242. # If you wish httpd to run as a different user or group, you must run
  243. # httpd as root initially and it will switch.  
  244. #
  245. # User/Group: The name (or #number) of the user/group to run httpd as.
  246. #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  247. #  . On HPUX you may not be able to use shared memory as nobody, and the
  248. #    suggested workaround is to create a user www and use that user.
  249. #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  250. #  when the value of (unsigned)Group is above 60000; 
  251. #  don't use Group nogroup on these systems!
  252. #
  253. # DO NOT CHANGE THIS UNLESS YOU RECOMPILE suexec.
  254. User www
  255. Group www
  256.  
  257. #
  258. # ServerAdmin: Your address, where problems with the server should be
  259. # e-mailed.  This address appears on some server-generated pages, such
  260. # as error documents.
  261. #
  262. ServerAdmin you@your.address
  263. # @@
  264.  
  265. #
  266. # ServerName allows you to set a host name which is sent back to clients for
  267. # your server if it's different than the one the program would get (i.e., use
  268. # "www" instead of the host's real name).
  269. #
  270. # Note: You cannot just invent host names and hope they work. The name you 
  271. # define here must be a valid DNS name for your host. If you don't understand
  272. # this, ask your network administrator.
  273. # If your host doesn't have a registered DNS name, enter its IP address here.
  274. # You will have to access it by its address (e.g., http://123.45.67.89/)
  275. # anyway, and this will make redirections work in a sensible way.
  276. #
  277. # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
  278. # machine always knows itself by this address. If you use Apache strictly for 
  279. # local testing and development, you may use 127.0.0.1 as the server name.
  280. #
  281. #ServerName new.host.name
  282. # @@
  283.  
  284. #
  285. # DocumentRoot: The directory out of which you will serve your
  286. # documents. By default, all requests are taken from this directory, but
  287. # symbolic links and aliases may be used to point to other locations.
  288. #
  289. DocumentRoot "/Apache/htdocs"
  290.  
  291. #
  292. # Each directory to which Apache has access, can be configured with respect
  293. # to which services and features are allowed and/or disabled in that
  294. # directory (and its subdirectories). 
  295. #
  296. # First, we configure the "default" to be a very restrictive set of 
  297. # permissions.  
  298. #
  299. <Directory />
  300.     Options FollowSymLinks
  301.     AllowOverride None
  302. </Directory>
  303.  
  304. #
  305. # Note that from this point forward you must specifically allow
  306. # particular features to be enabled - so if something's not working as
  307. # you might expect, make sure that you have specifically enabled it
  308. # below.
  309. #
  310.  
  311. #
  312. # This should be changed to whatever you set DocumentRoot to.
  313. #
  314. <Directory "/Apache/htdocs">
  315.  
  316. #
  317. # This may also be "None", "All", or any combination of "Indexes",
  318. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  319. #
  320. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  321. # doesn't give it to you.
  322. #
  323.     Options Indexes FollowSymLinks MultiViews
  324.  
  325. #
  326. # This controls which options the .htaccess files in directories can
  327. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  328. # "AuthConfig", and "Limit"
  329. #
  330.     AllowOverride None
  331.  
  332. #
  333. # Controls who can get stuff from this server.
  334. #
  335.     Order allow,deny
  336.     Allow from all
  337. </Directory>
  338.  
  339. #
  340. # UserDir: The name of the directory which is appended onto a user's home
  341. # directory if a ~user request is received.
  342. #
  343. <IfModule mod_userdir.c>
  344.     UserDir .public_html
  345. # @@
  346. </IfModule>
  347.  
  348. #
  349. # Control access to UserDir directories.  The following is an example
  350. # for a site where these directories are restricted to read-only.
  351. #
  352. #<Directory /home/*/public_html>
  353. #    AllowOverride FileInfo AuthConfig Limit
  354. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  355. #    <Limit GET POST OPTIONS PROPFIND>
  356. #        Order allow,deny
  357. #        Allow from all
  358. #    </Limit>
  359. #    <LimitExcept GET POST OPTIONS PROPFIND>
  360. #        Order deny,allow
  361. #        Deny from all
  362. #    </LimitExcept>
  363. #</Directory>
  364.  
  365. #
  366. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  367. # directory index.  Separate multiple entries with spaces.
  368. #
  369. <IfModule mod_dir.c>
  370.     DirectoryIndex index.html index.shtml index.php
  371. # @@
  372. </IfModule>
  373.  
  374. #
  375. # AccessFileName: The name of the file to look for in each directory
  376. # for access control information.
  377. #
  378. AccessFileName .htaccess
  379.  
  380. #
  381. # The following lines prevent .htaccess files from being viewed by
  382. # Web clients.  Since .htaccess files often contain authorization
  383. # information, access is disallowed for security reasons.  Comment
  384. # these lines out if you want Web visitors to see the contents of
  385. # .htaccess files.  If you change the AccessFileName directive above,
  386. # be sure to make the corresponding changes here.
  387. #
  388. # Also, folks tend to use names such as .htpasswd for password
  389. # files, so this will protect those as well.
  390. #
  391. <Files ~ "^\.ht">
  392.     Order allow,deny
  393.     Deny from all
  394. </Files>
  395.  
  396. #
  397. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  398. # document that was negotiated on the basis of content. This asks proxy
  399. # servers not to cache the document. Uncommenting the following line disables
  400. # this behavior, and proxies will be allowed to cache the documents.
  401. #
  402. #CacheNegotiatedDocs
  403.  
  404. #
  405. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  406. # Apache needs to construct a self-referencing URL (a URL that refers back
  407. # to the server the response is coming from) it will use ServerName and
  408. # Port to form a "canonical" name.  With this setting off, Apache will
  409. # use the hostname:port that the client supplied, when possible.  This
  410. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  411. #
  412. UseCanonicalName On
  413.  
  414. #
  415. # TypesConfig describes where the mime.types file (or equivalent) is
  416. # to be found.
  417. #
  418. <IfModule mod_mime.c>
  419.     TypesConfig /Apache/conf/mime.types
  420. </IfModule>
  421.  
  422. #
  423. # DefaultType is the default MIME type the server will use for a document
  424. # if it cannot otherwise determine one, such as from filename extensions.
  425. # If your server contains mostly text or HTML documents, "text/plain" is
  426. # a good value.  If most of your content is binary, such as applications
  427. # or images, you may want to use "application/octet-stream" instead to
  428. # keep browsers from trying to display binary files as though they are
  429. # text.
  430. #
  431. DefaultType text/plain
  432.  
  433. #
  434. # The mod_mime_magic module allows the server to use various hints from the
  435. # contents of the file itself to determine its type.  The MIMEMagicFile
  436. # directive tells the module where the hint definitions are located.
  437. # mod_mime_magic is not part of the default server (you have to add
  438. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  439. # Environment' section], or recompile the server and include mod_mime_magic
  440. # as part of the configuration), so it's enclosed in an <IfModule> container.
  441. # This means that the MIMEMagicFile directive will only be processed if the
  442. # module is part of the server.
  443. #
  444. <IfModule mod_mime_magic.c>
  445.     MIMEMagicFile /Apache/conf/magic
  446. </IfModule>
  447.  
  448. #
  449. # HostnameLookups: Log the names of clients or just their IP addresses
  450. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  451. # The default is off because it'd be overall better for the net if people
  452. # had to knowingly turn this feature on, since enabling it means that
  453. # each client request will result in AT LEAST one lookup request to the
  454. # nameserver.
  455. #
  456. HostnameLookups Off
  457.  
  458. #
  459. # ErrorLog: The location of the error log file.
  460. # If you do not specify an ErrorLog directive within a <VirtualHost>
  461. # container, error messages relating to that virtual host will be
  462. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  463. # container, that host's errors will be logged there and not here.
  464. #
  465. ErrorLog logs/error_log
  466.  
  467. #
  468. # LogLevel: Control the number of messages logged to the error_log.
  469. # Possible values include: debug, info, notice, warn, error, crit,
  470. # alert, emerg.
  471. #
  472. LogLevel warn
  473.  
  474. #
  475. # The following directives define some format nicknames for use with
  476. # a CustomLog directive (see below).
  477. #
  478. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  479. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  480. LogFormat "%{Referer}i -> %U" referer
  481. LogFormat "%{User-agent}i" agent
  482.  
  483. #
  484. # The location and format of the access logfile (Common Logfile Format).
  485. # If you do not define any access logfiles within a <VirtualHost>
  486. # container, they will be logged here.  Contrariwise, if you *do*
  487. # define per-<VirtualHost> access logfiles, transactions will be
  488. # logged therein and *not* in this file.
  489. #
  490. CustomLog logs/access_log common
  491. # @@
  492.  
  493. #
  494. # If you would like to have agent and referer logfiles, uncomment the
  495. # following directives.
  496. #
  497. #CustomLog logs/referer_log referer
  498. #CustomLog logs/agent_log agent
  499.  
  500. #
  501. # If you prefer a single logfile with access, agent, and referer information
  502. # (Combined Logfile Format) you can use the following directive.
  503. #
  504. #CustomLog logs/access_log combined
  505.  
  506. #
  507. # Optionally add a line containing the server version and virtual host
  508. # name to server-generated pages (error documents, FTP directory listings,
  509. # mod_status and mod_info output etc., but not CGI generated documents).
  510. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  511. # Set to one of:  On | Off | EMail
  512. #
  513. ServerSignature EMail
  514. # @@
  515.  
  516. #
  517. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  518. # Alias fakename realname
  519. #
  520. <IfModule mod_alias.c>
  521.  
  522.     #
  523.     # Note that if you include a trailing / on fakename then the server will
  524.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  525.     # example, only "/icons/"..
  526.     #
  527.     Alias /icons/ "/Apache/icons/"
  528.  
  529.     <Directory "/Apache/icons">
  530.         Options Indexes MultiViews
  531.         AllowOverride None
  532.         Order allow,deny
  533.         Allow from all
  534.     </Directory>
  535.  
  536.     #
  537.     # ScriptAlias: This controls which directories contain server scripts.
  538.     # ScriptAliases are essentially the same as Aliases, except that
  539.     # documents in the realname directory are treated as applications and
  540.     # run by the server when requested rather than as documents sent to the client.
  541.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  542.     # Alias.
  543.     #
  544.     ScriptAlias /cgi-bin/ "/Apache/cgi-bin/"
  545.  
  546.     #
  547.     # "/Apache/cgi-bin" should be changed to whatever your ScriptAliased
  548.     # CGI directory exists, if you have that configured.
  549.     #
  550.     <Directory "/Apache/cgi-bin">
  551.         AllowOverride None
  552.         Options None
  553.         Order allow,deny
  554.         Allow from all
  555.     </Directory>
  556.  
  557. </IfModule>
  558. # End of aliases.
  559.  
  560. #
  561. # Redirect allows you to tell clients about documents which used to exist in
  562. # your server's namespace, but do not anymore. This allows you to tell the
  563. # clients where to look for the relocated document.
  564. # Format: Redirect old-URI new-URL
  565. #
  566.  
  567. #
  568. # Directives controlling the display of server-generated directory listings.
  569. #
  570. <IfModule mod_autoindex.c>
  571.  
  572.     #
  573.     # FancyIndexing is whether you want fancy directory indexing or standard
  574.     #
  575.     IndexOptions FancyIndexing
  576.  
  577.     #
  578.     # AddIcon* directives tell the server which icon to show for different
  579.     # files or filename extensions.  These are only displayed for
  580.     # FancyIndexed directories.
  581.     #
  582.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  583.  
  584.     AddIconByType (TXT,/icons/text.gif) text/*
  585.     AddIconByType (IMG,/icons/image2.gif) image/*
  586.     AddIconByType (SND,/icons/sound2.gif) audio/*
  587.     AddIconByType (VID,/icons/movie.gif) video/*
  588.  
  589.     AddIcon /icons/binary.gif .bin .exe
  590.     AddIcon /icons/binhex.gif .hqx
  591.     AddIcon /icons/tar.gif .tar
  592.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  593.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  594.     AddIcon /icons/a.gif .ps .ai .eps
  595.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  596.     AddIcon /icons/text.gif .txt
  597.     AddIcon /icons/c.gif .c
  598.     AddIcon /icons/p.gif .pl .py
  599.     AddIcon /icons/f.gif .for
  600.     AddIcon /icons/dvi.gif .dvi
  601.     AddIcon /icons/uuencoded.gif .uu
  602.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  603.     AddIcon /icons/tex.gif .tex
  604.     AddIcon /icons/bomb.gif core
  605.  
  606.     AddIcon /icons/back.gif ..
  607.     AddIcon /icons/hand.right.gif README
  608.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  609.     AddIcon /icons/blank.gif ^^BLANKICON^^
  610.  
  611.     #
  612.     # DefaultIcon is which icon to show for files which do not have an icon
  613.     # explicitly set.
  614.     #
  615.     DefaultIcon /icons/unknown.gif
  616.  
  617.     #
  618.     # AddDescription allows you to place a short description after a file in
  619.     # server-generated indexes.  These are only displayed for FancyIndexed
  620.     # directories.
  621.     # Format: AddDescription "description" filename
  622.     #
  623.     #AddDescription "GZIP compressed document" .gz
  624.     #AddDescription "tar archive" .tar
  625.     #AddDescription "GZIP compressed tar archive" .tgz
  626.  
  627.     #
  628.     # ReadmeName is the name of the README file the server will look for by
  629.     # default, and append to directory listings.
  630.     #
  631.     # HeaderName is the name of a file which should be prepended to
  632.     # directory indexes. 
  633.     #
  634.     # If MultiViews are amongst the Options in effect, the server will
  635.     # first look for name.html and include it if found.  If name.html
  636.     # doesn't exist, the server will then look for name.txt and include
  637.     # it as plaintext if found.
  638.     #
  639.     ReadmeName README
  640.     HeaderName HEADER
  641.  
  642.     #
  643.     # IndexIgnore is a set of filenames which directory indexing should ignore
  644.     # and not include in the listing.  Shell-style wildcarding is permitted.
  645.     #
  646.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  647.  
  648. </IfModule>
  649. # End of indexing directives.
  650.  
  651. #
  652. # Document types.
  653. #
  654. <IfModule mod_mime.c>
  655.  
  656.     #
  657.     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  658.     # information on the fly. Note: Not all browsers support this.
  659.     # Despite the name similarity, the following Add* directives have nothing
  660.     # to do with the FancyIndexing customization directives above.
  661.     #
  662.     AddEncoding x-compress Z
  663.     AddEncoding x-gzip gz tgz
  664.  
  665.     #
  666.     # AddLanguage allows you to specify the language of a document. You can
  667.     # then use content negotiation to give a browser a file in a language
  668.     # it can understand.  
  669.     #
  670.     # Note 1: The suffix does not have to be the same as the language 
  671.     # keyword --- those with documents in Polish (whose net-standard 
  672.     # language code is pl) may wish to use "AddLanguage pl .po" to 
  673.     # avoid the ambiguity with the common suffix for perl scripts.
  674.     #
  675.     # Note 2: The example entries below illustrate that in quite
  676.     # some cases the two character 'Language' abbriviation is not
  677.     # identical to the two character 'Country' code for its country,
  678.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  679.     #
  680.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char 
  681.     # specifier. But there is 'work in progress' to fix this and get 
  682.     # the reference data for rfc1766 cleaned up.
  683.     #
  684.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  685.     # French (fr) - German (de) - Greek-Modern (el)
  686.     # Italian (it) - Korean (kr) - Norwegian (no)
  687.     # Portugese (pt) - Luxembourgeois* (ltz)
  688.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  689.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  690.     # Russian (ru)
  691.     #
  692.     AddLanguage da .dk
  693.     AddLanguage nl .nl
  694.     AddLanguage en .en
  695.     AddLanguage et .ee
  696.     AddLanguage fr .fr
  697.     AddLanguage de .de
  698.     AddLanguage el .el
  699.     AddLanguage he .he
  700.     AddCharset ISO-8859-8 .iso8859-8
  701.     AddLanguage it .it
  702.     AddLanguage ja .ja
  703.     AddCharset ISO-2022-JP .jis
  704.     AddLanguage kr .kr
  705.     AddCharset ISO-2022-KR .iso-kr
  706.     AddLanguage no .no
  707.     AddLanguage pl .po
  708.     AddCharset ISO-8859-2 .iso-pl
  709.     AddLanguage pt .pt
  710.     AddLanguage pt-br .pt-br
  711.     AddLanguage ltz .lu
  712.     AddLanguage ca .ca
  713.     AddLanguage es .es
  714.     AddLanguage sv .se
  715.     AddLanguage cz .cz
  716.     AddLanguage ru .ru
  717.     AddLanguage tw .tw
  718.     AddCharset Big5         .Big5    .big5
  719.     AddCharset WINDOWS-1251 .cp-1251
  720.     AddCharset CP866        .cp866
  721.     AddCharset ISO-8859-5   .iso-ru
  722.     AddCharset KOI8-R       .koi8-r
  723.     AddCharset UCS-2        .ucs2
  724.     AddCharset UCS-4        .ucs4
  725.     AddCharset UTF-8        .utf8
  726.  
  727.     # LanguagePriority allows you to give precedence to some languages
  728.     # in case of a tie during content negotiation.
  729.     #
  730.     # Just list the languages in decreasing order of preference. We have
  731.     # more or less alphabetized them here. You probably want to change this.
  732.     #
  733.     <IfModule mod_negotiation.c>
  734.         LanguagePriority de en fr da nl et el it ja kr no pl pt pt-br ru ltz ca es sv tw
  735. # @@
  736.     </IfModule>
  737.  
  738.     #
  739.     # AddType allows you to tweak mime.types without actually editing it, or to
  740.     # make certain files to be certain types.
  741.     #
  742.     # For example, the PHP 3.x module (not part of the Apache distribution - see
  743.     # http://www.php.net) will typically use:
  744.     #
  745.     #AddType application/x-httpd-php3 .php3
  746.     #AddType application/x-httpd-php3-source .phps
  747.     #
  748.     # And for PHP 4.x, use:
  749.     #
  750.     AddType application/x-httpd-php .php
  751.     AddType application/x-httpd-php-source .phps
  752.  
  753.     AddType application/x-tar .tgz
  754.  
  755.     #
  756.     # AddHandler allows you to map certain file extensions to "handlers",
  757.     # actions unrelated to filetype. These can be either built into the server
  758.     # or added with the Action command (see below)
  759.     #
  760.     # If you want to use server side includes, or CGI outside
  761.     # ScriptAliased directories, uncomment the following lines.
  762.     #
  763.     # To use CGI scripts:
  764.     #
  765.     AddHandler cgi-script .cgi
  766.  
  767.     #
  768.     # To use server-parsed HTML files
  769.     #
  770.     AddType text/html .shtml
  771.     AddHandler server-parsed .shtml
  772.  
  773.     #
  774.     # Uncomment the following line to enable Apache's send-asis HTTP file
  775.     # feature
  776.     #
  777.     AddHandler send-as-is asis
  778.  
  779.     #
  780.     # If you wish to use server-parsed imagemap files, use
  781.     #
  782.     #AddHandler imap-file map
  783.  
  784.     #
  785.     # To enable type maps, you might want to use
  786.     #
  787.     #AddHandler type-map var
  788.  
  789. </IfModule>
  790. # End of document types.
  791.  
  792. #
  793. # Action lets you define media types that will execute a script whenever
  794. # a matching file is called. This eliminates the need for repeated URL
  795. # pathnames for oft-used CGI file processors.
  796. # Format: Action media/type /cgi-script/location
  797. # Format: Action handler-name /cgi-script/location
  798. #
  799.  
  800. #
  801. # MetaDir: specifies the name of the directory in which Apache can find
  802. # meta information files. These files contain additional HTTP headers
  803. # to include when sending the document
  804. #
  805. #MetaDir .web
  806.  
  807. #
  808. # MetaSuffix: specifies the file name suffix for the file containing the
  809. # meta information.
  810. #
  811. #MetaSuffix .meta
  812.  
  813. #
  814. # Customizable error response (Apache style)
  815. #  these come in three flavors
  816. #
  817. #    1) plain text
  818. #ErrorDocument 500 "The server made a boo boo.
  819. #  n.b.  the single leading (") marks it as text, it does not get output
  820. #
  821. #    2) local redirects
  822. #ErrorDocument 404 /missing.html
  823. #  to redirect to local URL /missing.html
  824. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  825. #  N.B.: You can redirect to a script or a document using server-side-includes.
  826. #
  827. #    3) external redirects
  828. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  829. #  N.B.: Many of the environment variables associated with the original
  830. #  request will *not* be available to such a script.
  831.  
  832. #
  833. # Customize behaviour based on the browser
  834. #
  835. <IfModule mod_setenvif.c>
  836.  
  837.     #
  838.     # The following directives modify normal HTTP response behavior.
  839.     # The first directive disables keepalive for Netscape 2.x and browsers that
  840.     # spoof it. There are known problems with these browser implementations.
  841.     # The second directive is for Microsoft Internet Explorer 4.0b2
  842.     # which has a broken HTTP/1.1 implementation and does not properly
  843.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  844.     #
  845.     BrowserMatch "Mozilla/2" nokeepalive
  846.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  847.  
  848.     #
  849.     # The following directive disables HTTP/1.1 responses to browsers which
  850.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  851.     # basic 1.1 response.
  852.     #
  853.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  854.     BrowserMatch "Java/1\.0" force-response-1.0
  855.     BrowserMatch "JDK/1\.0" force-response-1.0
  856.  
  857. </IfModule>
  858. # End of browser customization directives
  859.  
  860. #
  861. # Allow server status reports, with the URL of http://servername/server-status
  862. # Change the ".your_domain.com" to match your domain to enable.
  863. #
  864. <Location /server-status>
  865.     SetHandler server-status
  866. #    Order deny,allow
  867. #    Deny from all
  868. #    Allow from .your_domain.com
  869. </Location>
  870. # @@
  871.  
  872. #
  873. # Allow remote server configuration reports, with the URL of
  874. # http://servername/server-info (requires that mod_info.c be loaded).
  875. # Change the ".your_domain.com" to match your domain to enable.
  876. #
  877. <Location /server-info>
  878.     SetHandler server-info
  879. #    Order deny,allow
  880. #    Deny from all
  881. #    Allow from .your_domain.com
  882. </Location>
  883. # @@
  884.  
  885. #
  886. # There have been reports of people trying to abuse an old bug from pre-1.1
  887. # days.  This bug involved a CGI script distributed as a part of Apache.
  888. # By uncommenting these lines you can redirect these attacks to a logging 
  889. # script on phf.apache.org.  Or, you can record them yourself, using the script
  890. # support/phf_abuse_log.cgi.
  891. #
  892. #<Location /cgi-bin/phf*>
  893. #    Deny from all
  894. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  895. #</Location>
  896.  
  897. #
  898. # Proxy Server directives. Uncomment the following lines to
  899. # enable the proxy server:
  900. #
  901. <IfModule mod_proxy.c>
  902. #    ProxyRequests On
  903. # @@
  904.  
  905. #    <Directory proxy:*>
  906. #        Order deny,allow
  907. #        Deny from all
  908. #        Allow from .your_domain.com
  909. #    </Directory>
  910.  
  911.     #
  912.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  913.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  914.     # Set to one of: Off | On | Full | Block
  915.     #
  916. #    ProxyVia On
  917.  
  918.     #
  919.     # To enable the cache as well, edit and uncomment the following lines:
  920.     # (no cacheing without CacheRoot)
  921.     #
  922. #    CacheRoot "/Apache/proxy"
  923. #    CacheSize 5
  924. #    CacheGcInterval 4
  925. #    CacheMaxExpire 24
  926. #    CacheLastModifiedFactor 0.1
  927. #    CacheDefaultExpire 1
  928. #    NoCache a_domain.com another_domain.edu joes.garage_sale.com
  929.  
  930. </IfModule>
  931. # End of proxy directives.
  932.  
  933. ### Section 3: Virtual Hosts
  934. #
  935. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  936. # machine you can setup VirtualHost containers for them. Most configurations
  937. # use only name-based virtual hosts so the server doesn't need to worry about
  938. # IP addresses. This is indicated by the asterisks in the directives below.
  939. #
  940. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  941. # for further details before you try to setup virtual hosts.
  942. #
  943. # You may use the command line option '-S' to verify your virtual host
  944. # configuration.
  945.  
  946. #
  947. # Use name-based virtual hosting.
  948. #
  949. #NameVirtualHost *
  950.  
  951. #
  952. # VirtualHost example:
  953. # Almost any Apache directive may go into a VirtualHost container.
  954. # The first VirtualHost section is used for requests without a known
  955. # server name.
  956. #
  957. #<VirtualHost *>
  958. #    ServerAdmin webmaster@dummy-host.example.com
  959. #    DocumentRoot /www/docs/dummy-host.example.com
  960. #    ServerName dummy-host.example.com
  961. #    ErrorLog logs/dummy-host.example.com-error_log
  962. #    CustomLog logs/dummy-host.example.com-access_log common
  963. #</VirtualHost>
  964.